# -*- coding: utf-8 -*-
from tkinter import *

class Application(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pack()
        self.createWidgets()

    def createWidgets(self):
        self.QUIT = Button(self)
        self.QUIT["text"] = "QUIT"
        self.QUIT["fg"]   = "red"
        self.QUIT["command"] =  self.quit
        self.QUIT.pack({"side": "left"})

        self.label = Label(self)
        self.label["text"] = "This is a label"
        self.label["bg"] = "green"
        self.label.pack({"side": " bottom"})
        
   

root = Tk()
root.title('tkinter_demo')
root.geometry('300x100')
app = Application(master=root)
app.mainloop()
root.destroy()